import { createRouter, createWebHistory } from 'vue-router'
import MainView from './components/Main.vue'
import LoginView from './components/Login.vue'

const routes = [
    { path: '/', redirect: '/login' },
    { path: '/main', component: MainView },
    { path: '/login', component: LoginView },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router